package stoyanov.calculator;

import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;

public class MainClass {
	
	static Display display = new Display();
    static Shell shell = new Shell(display);
	
	public static void main(String[] args) {	
		
		shell.setLayout(new GridLayout());
		
		shell.setAlpha(0);
	
		shell.setBounds(500,200,500,250);
		shell.setLayout(new GridLayout());
		shell.setText("J - calculator");
		
		new Interface().draw(shell, display);
		
		shell.open();
		shell.pack();
		
		while(!shell.isDisposed())
			if(!display.readAndDispatch())
				display.sleep();
	}
}
